/**
 * FileXMLFilter.java
 * @author Team KARP
 * 
 * @revisions 1.0 - Created this basic filter
 */
package protovitae.ui;

import java.io.File;
import javax.swing.filechooser.FileFilter;


public class FileXMLFilter extends FileFilter {

    @Override
    public String getDescription() {
        return "XML files"; //We could change the file type if we want.
    }

    @Override
    public boolean accept(File pathname) {
        if(pathname.isDirectory()){
            return true;
        }
        
        if(pathname.getName().toLowerCase().endsWith(".xml"))
            return true;
        else
            return false;
    }

}
